#pragma once
#include <functional>

namespace app_sdk {

// APP更新接口回调
using OnAppUpdateCallback = std::function<void(int code, const std::map<std::string, std::string>& info)>;
// 发送短信验证码回调
using OnSendCodeCallback = std::function<void(int code, const std::string& msg)>;
// 注册新账号回调
using OnRegisterCallback = std::function<void(int code, const std::string& msg)>;
// 登录账号回调
using OnLoginCallback = std::function<void(int code, const std::string& msg)>;
// 获取用户信息回调
using OnUserInfoCallback = std::function<void(int code, const std::map<std::string, std::string>& user_info)>;
// 修改用户信息回调
using OnUserEditCallback = std::function<void(int code, const std::string& msg)>;
// 领取红包回调
using OnRecvRedPacketCallback = std::function<void(int code, const std::map<std::string, std::string>& data)>;
// 查询ACCID回调
using OnQueryAccidCallback = std::function<void(int code, const std::string& accid)>;
//获取聊天室列表回调
using OnGetChatroomListCallback = std::function<void(int code, const std::vector<nim_chatroom::ChatRoomInfo>& chatroom_list)>;
//获取聊天室地址回调
using OnGetChatroomAddressCallback = std::function<void(int code, const std::list<std::string>& address_list)>;

}  // namespace app_sdk
